package com.atguigu.controller;

import com.atguigu.pojo.User;
import com.atguigu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * @author sx
 * @date 2022-02-23 14:45
 */
@Controller
public class UserController {

    @Autowired
    private UserService userService;

    public User queryUserByName(String name) {
        return userService.queryUserByName(name);
    }

}
